<script setup lang="ts">
import {defineProps} from 'vue'
import {OpenFileBrowser} from "../../wailsjs/go/service/SystemService";


let props=defineProps({
  url:{
    type:String,
    required:true,
  },
  text:{
    type:String,
    default:'点击跳转'
  }
})
function jumpToWebsite(){
  //跳转到官网首页
  OpenFileBrowser(props.url)
}
</script>

<template>
  <span @click="jumpToWebsite" class="text-blue-500 hover:cursor-pointer">{{props.text}}</span>
</template>

<style scoped>

</style>